package
{
	import flash.display.Stage;
	import flash.events.EventDispatcher;
	
	public class GameEventDispatcher extends EventDispatcher
	{
		private var stg:Stage;
		
		public function GameEventDispatcher(_stg:Stage)
		{
			stg = _stg;
		}
		
		
		public function heroMove(posX:Number, posY:Number):void
		{
			var e:GameEvent = new GameEvent(GameEvent.HERO_MOVE);
			e.posX = posX;
			e.posY = posY;
			stg.dispatchEvent(e);
		}
		
		public function heroSetFocus(player:Player):void
		{
			var e:GameEvent = new GameEvent(GameEvent.HERO_SET_FOCUS);
			e.player = player;
			stg.dispatchEvent(e);
		}		
	}
	
}